package com.duixiang.lei.car;

/*
  汽车 类      variety(种类)
 */
public class Car {
    private String brand;
    private int price;
    private String variety;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Car() {
        this.brand = brand;
        this.price = price;
        this.variety = variety;
    }

    public int getPrice() {

        return price;
    }

    public void setPrice(int price) {

        this.price = price;
    }

    public String getVariety() {

        return variety;
    }

    public void setVariety(String variety) {

        this.variety = variety;
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                ", variety='" + variety + '\'' +
                '}';
    }

    public void run() {
        System.out.println("跑");
    }

    public void manned() {
        System.out.println("核载五人");
    }
}
